#include <stdio.h>

struct Xxx {
	int aa;
	double bb;
};

int main() {
	struct Xxx mm, nn;
	// 声明一个指向结构的指针
	struct Xxx *pp;

	mm.aa = 8;
	mm.bb = 23.2;

	// 将成员copy
	nn = mm;

	// 将地址赋给指针
	pp = &mm;

	// 使用指针获取结构的成员
	(*pp).aa = 12;
	pp->bb = 97.2;

	printf("mm: [aa = %d, bb = %lf]\n", mm.aa, mm.bb);
	printf("nn: [aa = %d, bb = %lf]\n", nn.aa, nn.bb);
}

